package com.jihu.design.behavioral.chain;

/**
 * @author jihu
 * @date 2021/10/14
 */
public class MainTest {

    public static void main(String[] args) {
        Teacher t1 = new Teacher("t1");

        Teacher t2 = new Teacher("t2");

        Teacher t3 = new Teacher("t3");

        t1.setNext(t2);
        t2.setNext(t3);

        t1.handleRequest();

    }
}
